// table
common = {
	initTotalPage:function() {
		this.data = {
			pageNum: 0,
			tableData: [],
			queryData: {
				platformName:'',
				owersName:"",
				time: "",
				dateType: "3",
				page: 1,
				size: 10
			},
			//硬件综合统计-入网率统计
			datayjonlinetotle:[
				{
					align: 'center',
					field: "carTotal",
					title: "车辆数",
				},
				{
					field: "netInNum",
					title: "已入网数",
				},
				{
					field: "netOutNum",
					title: "未入网数",
				},
				{
					field: "netRate",
					title: "入网率",
					formatter: function (value, row, index) {
						return `${value}%`;
					}
				},
				{
					field: "ringRateIncreaseRate",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				},
			],
			datayjonline:[
				{
					field: 'no',
					title: '序号',
					align: 'center',
					formatter: function (value, row, index) {
						var pageSize = common.data.queryData.size;
						var pageNumber = common.data.queryData.page;
						return pageSize * (pageNumber - 1) + index + 1;
					}
				},
				{
					field: "areaName",
					title: "地区",
				},
				{
					field: "carTotal",
					title: "车辆数",
				},
				{
					field: "netInNum",
					title: "已入网数",
				},
				{
					field: "netOutNum",
					title: "未入网数",
				},
				{
					field: "netRate",
					title: "入网率",
					formatter: function (value, row, index) {
						return `${value}%`;
					}
				},
				{
					field: "ringRateIncreaseRate",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				},
			],
			//硬件综合统计-IC卡使用率
			datayjICtotle:[
				{
					align: 'center',
					field: "",
					title: "IC卡插入时长",
				},
				{
					field: "",
					title: "行驶时长",
				},
				{
					field: "",
					title: "IC卡使用率",
					formatter: function (value, row, index) {
						return `${value}%`;
					}
				},
				{
					field: "ringRateIncreaseRate",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				},
			],
			datayjIC:[
				{
					field: 'no',
					title: '序号',
					align: 'center',
					formatter: function (value, row, index) {
						var pageSize = common.data.queryData.size;
						var pageNumber = common.data.queryData.page;
						return pageSize * (pageNumber - 1) + index + 1;
					}
				},
				{
					field: "",
					title: "地区",
				},
				{
					field: "",
					title: "企业",
				},
				{
					field: "",
					title: "车牌号",
				},
				{
					field: "",
					title: "IC卡插入时长",
				},
				{
					field: "",
					title: "行驶时长",
				},
				{
					field: "",
					title: "IC卡使用率",
					formatter: function (value, row, index) {
						return `${value}%`;
					}
				},
				{
					field: "ringRateIncreaseRate",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				},
			],
			//运营商平台-平台联通率
			lowerPlatform: [
				{
					field: 'no',
					title: '序号',
					align: 'center',
					formatter: function (value, row, index) {
						var pageSize = common.data.queryData.size;
						var pageNumber = common.data.queryData.page;
						return pageSize * (pageNumber - 1) + index + 1;
					}
				},
				{
					field: "platformName",
					title: "运营商平台",
				},
				{
					field: "connectionDuration",
					title: "正常传输时间",
				},
				{
					field: "sumTime",
					title: "统计总时长",
				},
				{
					field: "platRate",
					title: "平台连通率",
					formatter: function (value, row, index) {
						return `${value}%`;
					}
				}
			],
			//运营商平台-查岗应答率
			checkreplyPlat: [
				{
					field: 'no',
					title: '序号',
					align: 'center',
					formatter: function (value, row, index) {
						var pageSize = common.data.queryData.size;
						var pageNumber = common.data.queryData.page;
						return pageSize * (pageNumber - 1) + index + 1;
					}
				},
				{
					field: "platformName",
					title: "运营商平台",
				},
				{
					field: "totalNumberOfPosts",
					title: "查岗次数",
				},
				{
					field: "numberOfResponses",
					title: "应答次数",
				},
				{
					field: "responseRate",
					title: "应答率",
					formatter: function (value, row, index) {
						return `${value}%`;
					}
				},
				{
					field: "ringRateIncreaseRate",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				}
			],
			checkreplytotal: [
				{
					align: 'center',
					field: "totalNumberOfPosts",
					title: "查岗次数",
				},
				{
					field: "numberOfResponses",
					title: "应答次数",
				},
				{
					field: "responseRate",
					title: "应答率",
					formatter: function (value, row, index) {
						return `${value}%`;
					}
				},
				{
					field: "ringRateIncreaseRate",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				}
			],
			//运营商平台-报警上传率
			checkbaojing: [
				{
					field: 'no',
					title: '序号',
					align: 'center',
					formatter: function (value, row, index) {
						var pageSize = common.data.queryData.size;
						var pageNumber = common.data.queryData.page;
						return pageSize * (pageNumber - 1) + index + 1;
					}
				},
				{
					align: 'center',
					field: "platformName",
					title: "运营商平台",
				},
				{
					field: "totalNumberOfPosts",
					title: "查岗次数",
				},
				{
					field: "numberOfResponses",
					title: "应答次数",
				},
				{
					field: "responseRate",
					title: "应答率",
					formatter: function (value, row, index) {
						return `${value}%`;
					}
				},
				{
					field: "ringRateIncreaseRate",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				}
			],
			checkbaojingtotal: [
				{
					align: 'center',
					field: "totalNumberOfPosts",
					title: "查岗次数",
				},
				{
					field: "numberOfResponses",
					title: "应答次数",
				},
				{
					field: "responseRate",
					title: "应答率",
					formatter: function (value, row, index) {
						return `${value}%`;
					}
				},
				{
					field: "ringRateIncreaseRate",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				}
			],
			//运营商平台-数据合格率
			checkQualified: [
				{
					align: 'center',
					field: "dataQualified",
					title: "数据合格数",
				},
				{
					field: "dataTotal",
					title: "数据总数",
				},
				{
					field: "qualifiedRate",
					title: "数据合格率",
					formatter: function (value, row, index) {
						return `${value}%`;
					}
				},
				{
					field: "ringRateIncreaseRate",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				}
			],
			checkQualifiedtotal: [
				{
					field: 'no',
					title: '序号',
					align: 'center',
					formatter: function (value, row, index) {
						var pageSize = common.data.queryData.size;
						var pageNumber = common.data.queryData.page;
						return pageSize * (pageNumber - 1) + index + 1;
					}
				},
				{
					field: "areaName",
					title: "地区",
				},
				{
					field: "platformName",
					title: "运营商平台",
				},
				{
					field: "owersName",
					title: "企业",
				},
				{
					field: "dataQualified",
					title: "数据合格数",
				},
				{
					field: "dataTotal",
					title: "数据总数",
				},
				{
					field: "qualifiedRate",
					title: "数据合格率",
					formatter: function (value, row, index) {
						return `${value}%`;
					}
				},
				{
					field: "ringRateIncreaseRate",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				}
			],
			//运营商平台-卫星定位漂移率
			checkDrift: [
				{
					align: 'center',
					field: "locationDrift",
					title: "卫星定位漂移车辆数",
				},
				{
					field: "locationTotal",
					title: "上传定位总车辆数",
				},
				{
					field: "locationRate",
					title: "卫星定位漂移车辆率",
					formatter: function (value, row, index) {
						return `${value}%`;
					}
				},
				{
					field: "ringRateIncreaseRate",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				}
			],
			checkDrifttotal: [
				{
					field: 'no',
					title: '序号',
					align: 'center',
					formatter: function (value, row, index) {
						var pageSize = common.data.queryData.size;
						var pageNumber = common.data.queryData.page;
						return pageSize * (pageNumber - 1) + index + 1;
					}
				},
				{
					field: "areaName",
					title: "地区",
				},
				{
					field: "platformName",
					title: "运营商平台",
				},
				{
					field: "owersName",
					title: "企业",
				},
				{
					field: "locationDrift",
					title: "卫星定位漂移车辆数",
				},
				{
					field: "locationTotal",
					title: "上传定位总车辆数",
				},
				{
					field: "locationRate",
					title: "卫星定位漂移车辆率",
					formatter: function (value, row, index) {
						return `${value}%`;
					}
				},
				{
					field: "ringRateIncreaseRate",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				}
			],
			// 企业综合统计-企业里程汇总
			checkqiye: [
				{
					field: 'no',
					title: '序号',
					align: 'center',
					formatter: function (value, row, index) {
						var pageSize = common.data.queryData.size;
						var pageNumber = common.data.queryData.page;
						return pageSize * (pageNumber - 1) + index + 1;
					}
				},
				{
					field: "areaName",
					title: " 地区",
				},
				{
					field: "platformName",
					title: "运营商平台",
				},
				{
					field: "owersName",
					title: "企业",
				},
				{
					field: "carTotal",
					title: "车辆数",
				},
				{
					field: "milTotal",
					title: "行驶总里程",
				},
				{
					field: "timeShow",
					title: "行驶总时长",
				}
			],
			// 企业综合统计-报警处理率
			checkAlarm: [
				{
					align: 'center',
					field: "alarmTotal",
					title: "上传报警总数",
				},
				{
					field: "alarmDispose",
					title: "已处理报警数",
				},
				{
					field: "alarmRate",
					title: "报警处理率",
					formatter: function (value, row, index) {
						return `${value}%`;
					}
				},
				{
					field: "ringRateIncreaseRate",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				}
			],
			checkAlarmtotal: [
				{
					field: 'no',
					title: '序号',
					align: 'center',
					formatter: function (value, row, index) {
						var pageSize = common.data.queryData.size;
						var pageNumber = common.data.queryData.page;
						return pageSize * (pageNumber - 1) + index + 1;
					}
				},
				{
					field: "areaName",
					title: "地区",
				},
				{
					field: "platformName",
					title: "运营商平台",
				},
				{
					field: "owersName",
					title: "企业",
				},
				{
					field: "alarmTotal",
					title: "上传报警总数",
				},
				{
					field: "alarmDispose",
					title: "已处理报警数",
				},
				{
					field: "alarmRate",
					title: "报警处理率",
					formatter: function (value, row, index) {
						return `${value}%`;
					}
				},
				{
					field: "ringRateIncreaseRate",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				}
			],
			//企业综合统计-报警平均处理时长
			owersCallTimeDe: [
				{
					field: 'no',
					title: '序号',
					align: 'center',
					formatter: function (value, row, index) {
						var pageSize = common.data.queryData.size;
						var pageNumber = common.data.queryData.page;
						return pageSize * (pageNumber - 1) + index + 1;
					}
				},
				{
					field: "areaName",
					title: "地区",
				},
				{
					field: "platformName",
					title: "运营商平台",
				},
				{
					field: "owersName",
					title: "企业",
				},
				{
					field: "totalNumberOfAlarmsProcessed",
					title: "已处理报警总数"
				},
				{
					field: "alarmProcessingTimeStr",
					title: "已处理报警总计时长"
				},
				{
					field: "averageAlarmTimeStr",
					title: "报警平均处理时长"
				},
				{
					field: "increaseInTheChain",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				}
			],
			owersCallTimeTo: [
				{
					align: 'center',
					field: "totalNumberOfAlarmsProcessed",
					title: "已处理报警总数"
				},
				{
					field: "alarmProcessingTime",
					title: "已处理报警总计时长"
				},
				{
					field: "averageAlarmTime",
					title: "报警平均处理时长"
				},
				{
					field: "increaseInTheChain",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				}
			],
			//企业综合统计-查岗响应率
			checkreplyPlatDetail: [
				{
					field: 'no',
					title: '序号',
					align: 'center',
					formatter: function (value, row, index) {
						var pageSize = common.data.queryData.size;
						var pageNumber = common.data.queryData.page;
						return pageSize * (pageNumber - 1) + index + 1;
					}
				},
				{
					field: "platformName",
					title: "运营商平台",
				},
				{
					field: "totalNumberOfPosts",
					title: "查岗次数",
				},
				{
					field: "numberOfResponses",
					title: "应答次数",
				},
				{
					field: "responseRate",
					title: "应答率",
					formatter: function (value, row, index) {
						return `${value}%`;
					}
				},
				{
					field: "ringRateIncreaseRate",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				}
			],
			owersCheckDetail: [
				{
					align: 'center',
					field: "platformName",
					title: "平台",
				},
				{
					field: "owersName",
					title: "企业",
				},
				{
					field: "totalNumberOfPosts",
					title: "查岗次数",
				},
				{
					field: "numberOfResponses",
					title: "应答次数",
				},
				{
					field: "responseRate",
					title: "应答率",
					formatter: function (value, row, index) {
						return `${value}%`;
					}
				},
				{
					field: "ringRateIncreaseRate",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				}
			],
			//企业综合统计-督办处理率
			owersOversolveDe: [
				{
					field: 'no',
					title: '序号',
					align: 'center',
					formatter: function (value, row, index) {
						var pageSize = common.data.queryData.size;
						var pageNumber = common.data.queryData.page;
						return pageSize * (pageNumber - 1) + index + 1;
					}
				},
				{
					align: 'center',
					field: "platformName",
					title: "平台"
				},
				{
					field: "owersName",
					title: "企业"
				},
				{
					field: "totalNumberOfSupervision",
					title: "督办报警总数"
				},
				{
					field: "supervised",
					title: "已处理督办报警数"
				},
				{
					field: "supervisoryProcessingRate",
					title: "督办处理率",
					formatter: function (value, row, index) {
						return `${value}%`;
					}
				},
				{
					field: "increaseInTheChain",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				}
			],
			owersOversolveTo: [
				{
					align: 'center',
					field: "totalNumberOfSupervision",
					title: "督办报警总数"
				},
				{
					field: "supervised",
					title: "已处理督办报警数"
				},
				{
					field: "supervisoryProcessingRate",
					title: "督办处理率",
					formatter: function (value, row, index) {
						return `${value}%`;
					}
				},
				{
					field: "increaseInTheChain",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				}
			],
			//企业综合统计-轨迹完成率
			checkTrack: [
				{
					align: 'center',
					field: "integrityTrack",
					title: "完整轨迹总数",
				},
				{
					field: "trackTotal",
					title: "上传轨迹总数",
				},
				{
					field: "integrityRate",
					title: "轨迹完整率",
					formatter: function (value, row, index) {
						return `${value}%`;
					}
				},
				{
					field: "ringRateIncreaseRate",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				}
			],
			checkTracktotal: [
				{
					field: 'no',
					title: '序号',
					align: 'center',
					formatter: function (value, row, index) {
						var pageSize = common.data.queryData.size;
						var pageNumber = common.data.queryData.page;
						return pageSize * (pageNumber - 1) + index + 1;
					}
				},
				{
					field: "areaName",
					title: "地区",
				},
				{
					field: "platformName",
					title: "运营商平台",
				},
				{
					field: "owersName",
					title: "企业",
				},
				{
					field: "integrityTrack",
					title: "完整轨迹总数",
				},
				{
					field: "trackTotal",
					title: "上传轨迹总数",
				},
				{
					field: "integrityRate",
					title: "轨迹完整率",
					formatter: function (value, row, index) {
						return `${value}%`;
					}
				},
				{
					field: "ringRateIncreaseRate",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				}
			],
			//车辆综合统计-车辆行程汇总
			checcar: [
				{
					field: 'no',
					title: '序号',
					align: 'center',
					formatter: function (value, row, index) {
						var pageSize = common.data.queryData.size;
						var pageNumber = common.data.queryData.page;
						return pageSize * (pageNumber - 1) + index + 1;
					}
				},
				{
					field: "vehicleNo",
					title: " 车牌号",
				},
				{
					field: "areaName",
					title: " 地区",
				},
				{
					field: "platformName",
					title: "运营商平台",
				},
				{
					field: "owersName",
					title: "企业",
				},
				{
					field: "transTypeName",
					title: "运输行业类型",
				},
				{
					field: "onlineCount",
					title: "行车次数",
				},
				{
					field: "onlineTimeShow",
					title: "行车总时长",
				},
				{
					field: "runMileage",
					title: "行车累计里程(km)",
				},
				{
					field: "averageSpeed",
					title: "平均速度(km/h)",
				}
			],
			//车辆综合统计-车辆上线率
			checcarlv: [
				{
					align: 'center',
					field: "carTotal",
					title: "总车辆数",
				},
				{
					field: "onLineNum",
					title: "上线车辆数",
				},
				{
					field: "onLineRate",
					title: "车辆上线率",
					formatter: function (value, row, index) {
						return `${value}%`;
					}
				},
				{
					field: "ringRateIncreaseRate",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				}
			],
			checcarlvtotal:[
				{
					field: 'no',
					title: '序号',
					align: 'center',
					formatter: function (value, row, index) {
						var pageSize = common.data.queryData.size;
						var pageNumber = common.data.queryData.page;
						return pageSize * (pageNumber - 1) + index + 1;
					}
				},
				{
					field: "areaName",
					title: "地区",
				},
				{
					field: "platformName",
					title: "运营商平台",
				},
				{
					field: "owersName",
					title: "企业",
				},
				{
					field: "carTotal",
					title: "总车辆数",
				},
				{
					field: "onLineNum",
					title: "上线车辆数",
				},
				{
					field: "onLineRate",
					title: "车辆上线率",
					formatter: function (value, row, index) {
						return `${value}%`;
					}
				},
				{
					field: "ringRateIncreaseRate",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				}
			],
			//车辆综合统计-车辆超速次数
			checcarcs: [
				{
					align: 'center',
					field: "integrityTrack",
					title: "总车辆数",
				},
				{
					field: "trackTotal",
					title: "上线车辆数",
				},
				{
					field: "averageNum",
					title: "平均车辆超速次数",
				},
				{
					field: "ringRateIncreaseRate",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				}
			],
			checcarcstotal:[
				{
					field: 'no',
					title: '序号',
					align: 'center',
					formatter: function (value, row, index) {
						var pageSize = common.data.queryData.size;
						var pageNumber = common.data.queryData.page;
						return pageSize * (pageNumber - 1) + index + 1;
					}
				},
				{
					field: "areaName",
					title: "地区",
				},
				{
					field: "platformName",
					title: "运营商平台",
				},
				{
					field: "owersName",
					title: "企业",
				},
				{
					field: "integrityTrack",
					title: "总车辆数",
				},
				{
					field: "trackTotal",
					title: "上线车辆数",
				},
				{
					field: "averageNum",
					title: "平均车辆超速次数",
				},
				{
					field: "ringRateIncreaseRate",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				}
			],
			//车辆综合统计-平均疲劳驾驶时长
			checcarpl: [
				{
					align: 'center',
					field: "carTotal",
					title: "上线车辆数",
				},
				{
					field: "tiredTimeShow",
					title: "疲劳驾驶总时长",
				},
				{
					field: "averageTiredShow",
					title: "平均疲劳驾驶时长",
				},
				{
					field: "ringRateIncreaseRate",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				}
			],
			checcarpltotal:[
				{
					field: 'no',
					title: '序号',
					align: 'center',
					formatter: function (value, row, index) {
						var pageSize = common.data.queryData.size;
						var pageNumber = common.data.queryData.page;
						return pageSize * (pageNumber - 1) + index + 1;
					}
				},
				{
					field: "areaName",
					title: "地区",
				},
				{
					field: "platformName",
					title: "运营商平台",
				},
				{
					field: "owersName",
					title: "企业",
				},
				{
					field: "carTotal",
					title: "上线车辆数",
				},
				{
					field: "tiredTimeShow",
					title: "疲劳驾驶总时长",
				},
				{
					field: "averageTiredShow",
					title: "平均疲劳驾驶时长",
				},
				{
					field: "ringRateIncreaseRate",
					title: "环比",
					formatter: function (value, row, index) {
						row.compareNum = value;
						if (value == "-") {
							return `-`;
						}else {
							return `${value}%`;
						}
					},
					cellStyle: function (value, row, index) {
						console.log(row.compareNum, "测试测试测试")
						console.log(row, "测试测试测试")
						let valRow = row.compareNum;
						if (index % 2 == 0) {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow == 9999) {
								return { css: { "background": "url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else {
								return {}
							}
						} else {
							if (valRow > 0 && valRow < 9999) {
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if (valRow < 0) {
								return { css: { "background": "#042b3e url('img/arrow-bot.png') no-repeat 60% center", "background-size": "5px 15px" } }
							} else if(valRow == 9999){
								return { css: { "background": "#042b3e url('img/arrow-top.png') no-repeat 60% center", "background-size": "5px 15px" } }
							}else {
								return {}
							}
						}
					}
				}
			],
			// 驾驶员综合统计-驾驶员行程汇总
			checkdrive: [
				{
					field: 'no',
					title: '序号',
					align: 'center',
					formatter: function (value, row, index) {
						var pageSize = common.data.queryData.size;
						var pageNumber = common.data.queryData.page;
						return pageSize * (pageNumber - 1) + index + 1;
					}
				},
				{
					field: "vehicleNo",
					title: " 驾驶员",
				},
				{
					field: "areaName",
					title: " 地区",
				},
				{
					field: "platformName",
					title: "运营商平台",
				},
				{
					field: "owersName",
					title: "企业",
				},
				{
					field: "transTypeName",
					title: "行驶总时长",
				},
				{
					field: "onlineCount",
					title: "行驶总里程",
				},
				{
					field: "onlineTime",
					title: "平均速度",
				},
				{
					field: "runMileage",
					title: "报警次数",
				}
			],
		}
		this.init();
		this.btnEvent();
		this.selectInputInit();
	}, // 初始化结束
	init:function(){
		let that = this;
		//初始化时间默认为上个月
		var now = new Date();
		let curYear = now.getFullYear();
		let curMonth = now.getMonth() + 1;
		let curDate = now.getDate();
		let maxCurMonth = curMonth - 1 >= 10 ? curMonth - 1 : `0${curMonth - 1}`;
		let curTime = `${curYear}-${maxCurMonth}-01`;
		// console.log(curTime, "ccccccccc")
		that.data.queryData.time = curTime;
		lay('#version').html('-v' + laydate.v);
		$Date = laydate;
		that.initDateForm();
		this.initdataNetTable();
	},
	btnEvent() {
		let that = this;
		$(".owers_statistics,.platform_input,.car_input").hide();
		$(".platform_statistics,.owers_input,.car_paltform,.drive_paltform").hide();
		$(".connet_time").hide();

		$(".tab_content").off("click","div").on("click","div",function() { // 顶部tab切换
			var index = $(this).index();
			$(".tab_content div").eq(index).addClass("active").siblings().removeClass("active");
			$("#check_weixing").bootstrapTable('load',[]);
			$("#check_detail").bootstrapTable('load',[]);

			switch(index) {
				case 0:
					common.data.pageNum = 0;
					common.queryParamterReset();
					$(".table_Two").show();
					$(".cn_second_tab .tab_child:nth-child(1)").show().siblings().hide();
					$(".platform_input,.car_input,.owers_input").hide();
					$(".rtable_input,.time_select").show();
					$(".lower_paltform div:first-child").addClass("childActive").siblings().removeClass("childActive");
					common.initdataNetTable();
					break;
				case 1:
					common.data.pageNum = 2;
					common.queryParamterReset();
					// $(".table_Two").hide();
					$("#check_weixing").bootstrapTable('destroy');
					$(".cn_second_tab .tab_child:nth-child(2)").show().siblings().hide();
					$(".time_select,.platform_input").show();
					$(".rtable_input,.car_input,.owers_input").hide();
					$(".platform_statistics div:first-child").addClass("childActive").siblings().removeClass("childActive");
					common.initLowerPlatform();
					break;
				case 2:
					common.data.pageNum = 7;
					common.queryParamterReset();
					// $(".table_Two").hide();
					$("#check_weixing").bootstrapTable('destroy');
					$(".cn_second_tab .tab_child:nth-child(3)").show().siblings().hide();
					$(".rtable_input,.time_select,.platform_input,.owers_input").show();
					$(".car_input").hide();
					$(".owers_statistics div:first-child").addClass("childActive").siblings().removeClass("childActive");
					common.initdataMil();
					break;
				case 3:
					common.data.pageNum = 13;
					common.queryParamterReset();
					// $(".table_Two").hide();
					$("#check_weixing").bootstrapTable('destroy');
					$(".cn_second_tab .tab_child:nth-child(4)").show().siblings().hide();
					$(".rtable_input,.platform_input,.owers_input,.time_select,.car_input").show();
					//$(".time_select,.car_input").hide();
					$(".car_paltform div:first-child").addClass("childActive").siblings().removeClass("childActive");
					common.initCar();
					break;
				case 4:
					common.data.pageNum = 17;
					common.queryParamterReset();
					// $(".table_Two").hide();
					$("#check_weixing").bootstrapTable('destroy');
					$(".cn_second_tab .tab_child:nth-child(5)").show().siblings().hide();
					$(".rtable_input,.platform_input,.owers_input,.time_select,.car_input").show();
					$(".drive_paltform div:first-child").addClass("childActive").siblings().removeClass("childActive");
					common.initdrive();
					break;
			}
		});
		// 二级tab切换 硬件综合统计
		$(".lower_paltform").off("click","div").on("click","div",function() {
			common.queryParamterReset();
			var index = $(this).index();
			$(this).addClass("childActive").siblings().removeClass("childActive");
			if(index==0) {
				$(".car_input").hide();
				common.data.pageNum = 0;
				common.initdataNetTable();
			}else{
				$(".car_input").show();
				common.data.pageNum = 1;
				common.initdataIC();
			}
		})
		// 二级tab切换 运营商平台综合统计
		$(".platform_statistics").off("click","div").on("click","div",function() {
			common.queryParamterReset();
			var index = $(this).index();
			$(this).addClass("childActive").siblings().removeClass("childActive");
			if(index==0) {
				$(".time_select,.platform_input").show();
				$(".rtable_input,.car_input,.owers_input,.table_Two").hide();
				common.data.pageNum = 2;
				common.initLowerPlatform();
			}else if(index==1){
				$(".time_select,.platform_input,.table_Two").show();
				$(".rtable_input,.car_input,.owers_input").hide();
				common.data.pageNum = 3;
				common.initPlatCheckTable();
			}else if(index==2){
				$(".rtable_input,.time_select,.platform_input,.owers_input,.table_Two").show();
				$(".car_input").hide();
				common.data.pageNum = 4;
				common.initbaojingTable();
			}else if(index==3){
				$(".rtable_input,.time_select,.platform_input,.owers_input,.table_Two").show();
				$(".car_input").hide();
				common.data.pageNum = 5;
				common.initbQualifiedTable();
			}else{
				$(".rtable_input,.time_select,.platform_input,.owers_input,.table_Two").show();
				$(".car_input").hide();
				common.data.pageNum = 6;
				common.initWXPosition();
			}
		})

		// 二级tab切换 企业综合统计
		$(".owers_statistics").off("click","div").on("click","div",function() {
			common.queryParamterReset();
			var index = $(this).index();
			$(this).addClass("childActive").siblings().removeClass("childActive");
			if(index==0) {
				$(".rtable_input,.time_select,.platform_input,.owers_input").show();
				$(".car_input,.table_Two").hide();
				common.data.pageNum = 7;
				common.initdataMil();
			}else if(index==1){
				$(".rtable_input,.time_select,.platform_input,.owers_input,.table_Two").show();
				$(".car_input").hide();
				common.data.pageNum = 8;
				common.initWXAlarm();
			}else if(index==2){
				$(".rtable_input,.time_select,.platform_input,.owers_input,.table_Two").show();
				$(".car_input").hide();
				common.data.pageNum = 9;
				common.initOwersCallTime();
			}else if(index==3){
				$(".rtable_input,.time_select,.platform_input,.owers_input,.table_Two").show();
				$(".car_input").hide();
				common.data.pageNum = 10;
				common.initOwersCheckTable();
			}else if(index==4){
				$(".rtable_input,.time_select,.platform_input,.owers_input,.table_Two").show();
				$(".car_input").hide();
				common.data.pageNum = 11;
				common.initOwersOversee();
			}else{
				$(".rtable_input,.time_select,.platform_input,.owers_input,.table_Two").show();
				$(".car_input").hide();
				common.data.pageNum = 12;
				common.initTrack();
			}
		});
		$(".car_paltform").off("click","div").on("click","div",function() {
			common.queryParamterReset();
			var index = $(this).index();
			$(this).addClass("childActive").siblings().removeClass("childActive");
			if(index==0) {
				$(".rtable_input,.platform_input,.owers_input,.time_select,.car_input").show();
				$(".table_Two").hide();
				common.data.pageNum = 13;
				common.initCar();
			}else if(index==1){
				$(".rtable_input,.time_select,.platform_input,.owers_input,.table_Two").show();
				$(".car_input").hide();
				common.data.pageNum = 14;
				common.initCarLv();
			}else if(index==2){
				$(".rtable_input,.time_select,.platform_input,.owers_input,.table_Two").show();
				$(".car_input").hide();
				common.data.pageNum = 15;
				common.initCarChaosu();
			}else{
				$(".rtable_input,.time_select,.platform_input,.owers_input,.table_Two").show();
				$(".car_input").hide();
				common.data.pageNum = 16;
				common.initCarPilao();
			}
		});
		$(".drive_paltform").off("click","div").on("click","div",function() {
			common.queryParamterReset();
			var index = $(this).index();
			$(this).addClass("childActive").siblings().removeClass("childActive");
			$(".table_Two").hide();
			$(".rtable_input,.platform_input,.owers_input,.time_select,.car_input").show();
			common.data.pageNum = 17;
			common.initdrive();

		});

		$("#totalStaticSearch").off("click").click(() =>{ // 查询
			common.clickQueryData();
		});
		$("#totalStaticReset").off("click").click(() => { // 重置
			common.queryParamterReset();
			lay('#version').html('-v' + laydate.v);
			$("#selectedOption").val('m');
			var index = $("#selectedOption").find("option:selected").val();
			// var indexType = String($("#selectedOption").get(0).selectedIndex + 1);
			that.data.queryData.dateType = "3";
			if (index == "w") {
				$("#d121").show();
				$("#worldId").hide();
			} else {
				$("#worldId").show();
				$("#d121").hide();
			}

			//初始化时间默认为上个月
			var now = new Date();
			let curYear = now.getFullYear();
			let curMonth = now.getMonth() + 1;
			let curDate = now.getDate();
			let maxCurMonth = curMonth - 1 >= 10 ? curMonth - 1 : `0${curMonth - 1}`;
			let curTime = `${curYear}-${maxCurMonth}-01`;
			that.data.queryData.time = curTime;
			$Date = laydate;
			that.initDateForm();
		});

		//日期插件下拉选择
		function creatOption() {
			$("#selectedOption").change(function () {
				var index = $(this).find("option:selected").val();
				var indexType = String($(this).get(0).selectedIndex + 1);
				that.data.queryData.dateType = indexType;
				if (index == "w") {
					$("#d121").show();
					$("#worldId").hide();
				} else {
					$("#worldId").show();
					$("#worldId").val();
					$("#d121").hide();
				}
			})
		}
		creatOption();
	},
	initdataNetTable() { // 硬件综合统计-入网统计
		jrequest.get("/api/comprehensive/dataNet",this.getQueryData(this.data.pageNum,'')).then(res => {
			$("#check_weixing").bootstrapTable('destroy');
			this.initBootTable("check_weixing",res.data,this.data.datayjonlinetotle,false,false,res.total);
		})
		jrequest.get("/api/comprehensive/dataNet",this.getQueryData(this.data.pageNum,'1')).then(res => {
			console.log(res)
			$("#check_detail").bootstrapTable('destroy');
			this.initBootTable("check_detail",res.data,this.data.datayjonline,true,true,res.total);
		})
	},
	initdataIC() { // 硬件综合统计-IC
		var res=[];
		// jrequest.get("/api/comprehensive/dataNet",this.getQueryData(this.data.pageNum,'')).then(res => {
			$("#check_weixing").bootstrapTable('destroy');
			this.initBootTable("check_weixing",res.data,this.data.datayjICtotle,false,false,res.total);
		// })
		// jrequest.get("/api/comprehensive/dataNet",this.getQueryData(this.data.pageNum,'1')).then(res => {
			$("#check_detail").bootstrapTable('destroy');
			this.initBootTable("check_detail",res.data,this.data.datayjIC,true,true,res.total);
		// })
	},
	initLowerPlatform() { // 运营商平台-平台联通率
		jrequest.get("/api/comprehensive/subordinatePlatformUnicom",this.getQueryData(this.data.pageNum)).then(res => {
			$("#check_detail").bootstrapTable('destroy');
			this.initBootTable("check_detail",res.data,this.data.lowerPlatform,true,true,res.total);
		})
	},
	initPlatCheckTable() { // 运营商平台-查岗应答率
		jrequest.get("/api/comprehensive/checkPostResponseRate",this.getQueryData(this.data.pageNum,'')).then(res => {
			$("#check_detail").bootstrapTable('destroy');
			this.initBootTable("check_detail",res.data,this.data.checkreplyPlat,true,true,res.total);
		})
		jrequest.get("/api/comprehensive/checkPostResponseRate",this.getQueryData(this.data.pageNum,'1')).then(res => {
			$("#check_weixing").bootstrapTable('destroy');
			this.initBootTable("check_weixing",res.data,this.data.checkreplytotal,false,false,res.total);
		})
	},
	initbaojingTable() { // 运营商平台-报警上传率
		var res=[];
		// jrequest.get("/api/comprehensive/checkPostResponseRate",this.getQueryData(this.data.pageNum,'')).then(res => {
			$("#check_detail").bootstrapTable('destroy');
			this.initBootTable("check_detail",res.data,this.data.checkbaojing,true,true,res.total);
		// })
		// jrequest.get("/api/comprehensive/checkPostResponseRate",this.getQueryData(this.data.pageNum,'1')).then(res => {
			$("#check_weixing").bootstrapTable('destroy');
			this.initBootTable("check_weixing",res.data,this.data.checkbaojingtotal,false,false,res.total);
		// })
	},
	initbQualifiedTable() { // 运营商平台-数据合格率
		jrequest.get("/api/comprehensive/dataQualified",this.getQueryData(this.data.pageNum,'')).then(res => {
			$("#check_weixing").bootstrapTable('destroy');
			this.initBootTable("check_weixing",res.data,this.data.checkQualified,false,false,res.total);
		})
		jrequest.get("/api/comprehensive/dataQualified",this.getQueryData(this.data.pageNum,'1')).then(res => {
			console.log(res)
			$("#check_detail").bootstrapTable('destroy');
			this.initBootTable("check_detail",res.data,this.data.checkQualifiedtotal,true,true,res.total);
		})
	},
	initWXPosition() { // 运营商平台-卫星定位漂移车辆率
		jrequest.get("/api/comprehensive/dataDrift",this.getQueryData(this.data.pageNum,'')).then(res => {
			$("#check_weixing").bootstrapTable('destroy');
			this.initBootTable("check_weixing",res.data,this.data.checkDrift,false,false,res.total);
		})
		jrequest.get("/api/comprehensive/dataDrift",this.getQueryData(this.data.pageNum,'1')).then(res => {
			console.log(res)
			$("#check_detail").bootstrapTable('destroy');
			this.initBootTable("check_detail",res.data,this.data.checkDrifttotal,true,true,res.total);
		})
	},
	initdataMil() { // 企业-企业里程汇
		jrequest.get("/api/comprehensive/dataMil",this.getQueryData(this.data.pageNum)).then(res => {
			console.log("456",res)
			$("#check_detail").bootstrapTable('destroy');
			this.initBootTable("check_detail",res.data,this.data.checkqiye,true,true,res.total);
		})
	},
	initWXAlarm() { // 企业-报警处理率
		jrequest.get("/api/comprehensive/dataAlarm",this.getQueryData(this.data.pageNum,'')).then(res => {
			$("#check_weixing").bootstrapTable('destroy');
			this.initBootTable("check_weixing",res.data,this.data.checkAlarm,false,false,res.total);
		})
		jrequest.get("/api/comprehensive/dataAlarm",this.getQueryData(this.data.pageNum,'1')).then(res => {
			console.log(res)
			$("#check_detail").bootstrapTable('destroy');
			this.initBootTable("check_detail",res.data,this.data.checkAlarmtotal,true,true,res.total);
		})
	},
	initOwersCallTime() { // 企业-报警平均处理时长
		jrequest.get("/api/comprehensive/avgAlarmProcessingTime",this.getQueryData(this.data.pageNum,"")).then(res => {
			$("#check_weixing").bootstrapTable('destroy');
			this.initBootTable("check_weixing",res.data,this.data.owersCallTimeTo,false,false,res.total);
		})
		jrequest.get("/api/comprehensive/avgAlarmProcessingTime",this.getQueryData(this.data.pageNum),"1").then(res => {
			$("#check_detail").bootstrapTable('destroy');
			this.initBootTable("check_detail",res.data,this.data.owersCallTimeDe,true,true,res.total);
		})
	},
	initOwersCheckTable() { // 企业-查岗应答率
		jrequest.get("/api/comprehensive/checkPostResponseRate",this.getQueryData(this.data.pageNum,'')).then(res => {
			$("#check_detail").bootstrapTable('destroy');
			this.initBootTable("check_detail",res.data,this.data.checkreplyPlat,true,true,res.total);
		})
		jrequest.get("/api/comprehensive/checkPostResponseRate",this.getQueryData(this.data.pageNum,'1')).then(res => {
			$("#check_weixing").bootstrapTable('destroy');
			this.initBootTable("check_weixing",res.data,this.data.checkreplytotal,false,false,res.total);
		})
	},
	initOwersOversee() { // 企业-督办处理率
		jrequest.get("/api/comprehensive/supervisoryProcessingRate",this.getQueryData(this.data.pageNum)).then(res => {
			$("#check_detail").bootstrapTable('destroy');
			this.initBootTable("check_detail",res.data,this.data.owersOversolveDe,true,true,res.total);
		})
		jrequest.get("/api/comprehensive/supervisoryProcessingRate",this.getQueryData(this.data.pageNum)).then(res => {
			$("#check_weixing").bootstrapTable('destroy');
			this.initBootTable("check_weixing",res.data,this.data.owersOversolveTo,false,false,res.total);
		})
	},
	initTrack() { // 企业-轨迹完成率
		jrequest.get("/api/comprehensive/dtaTrack",this.getQueryData(this.data.pageNum),"").then(res => {
			$("#check_weixing").bootstrapTable('destroy');
			this.initBootTable("check_weixing",res.data,this.data.checkTrack,false,false,res.total);
		})
		jrequest.get("/api/comprehensive/dtaTrack",this.getQueryData(this.data.pageNum),"1").then(res => {
			$("#check_detail").bootstrapTable('destroy');
			this.initBootTable("check_detail",res.data,this.data.checkTracktotal,true,true,res.total);
		})
	},
	initCar() { // 企业-车辆行车汇总
		jrequest.get("/api/comprehensive/dataSummary",this.getQueryData(this.data.pageNum)).then(res => {
			$("#check_detail").bootstrapTable('destroy');
			this.initBootTable("check_detail",res.data,this.data.checcar,true,true,res.total);
		})
	},
	initCarLv() { // 企业-车辆上线率
		jrequest.get("/api/comprehensive/dataOnline",this.getQueryData(this.data.pageNum),"").then(res => {
			console.log("111",res)
			$("#check_weixing").bootstrapTable('destroy');
			this.initBootTable("check_weixing",res.data,this.data.checcarlv,false,false,res.total);
		})
		jrequest.get("/api/comprehensive/dataOnline",this.getQueryData(this.data.pageNum),"1").then(res => {
			$("#check_detail").bootstrapTable('destroy');
			this.initBootTable("check_detail",res.data,this.data.checcarlvtotal,true,true,res.total);
		})
	},
	initCarChaosu() { // 企业-平均车辆超速次数
		jrequest.get("/api/comprehensive/dataSpeed",this.getQueryData(this.data.pageNum),"").then(res => {
			$("#check_weixing").bootstrapTable('destroy');
			this.initBootTable("check_weixing",res.data,this.data.checcarcs,false,false,res.total);
		})
		jrequest.get("/api/comprehensive/dataSpeed",this.getQueryData(this.data.pageNum),"1").then(res => {
			$("#check_detail").bootstrapTable('destroy');
			this.initBootTable("check_detail",res.data,this.data.checcarcstotal,true,true,res.total);
		})
	},
	initCarPilao() { // 企业-平均车辆超速次数
		jrequest.get("/api/comprehensive/dataTired",this.getQueryData(this.data.pageNum),"").then(res => {
			$("#check_weixing").bootstrapTable('destroy');
			this.initBootTable("check_weixing",res.data,this.data.checcarpl,false,false,res.total);
	    })
		jrequest.get("/api/comprehensive/dataTired",this.getQueryData(this.data.pageNum),"1").then(res => {
			$("#check_detail").bootstrapTable('destroy');
			this.initBootTable("check_detail",res.data,this.data.checcarpltotal,true,true,res.total);
		})
	},
	initdrive() { // 驾驶员-行程统计
		var res=[];
		// jrequest.get("/api/comprehensive/dataSummary",this.getQueryData(this.data.pageNum)).then(res => {
			$("#check_detail").bootstrapTable('destroy');
			this.initBootTable("check_detail",res.data,this.data.checkdrive,true,true,res.total);
		// })
	},

	initBootTable(id,data,columns,paginationShow,showColumns,total) {
		$('#' + id).bootstrapTable({
			method: 'get',
			cache: false,
			height: 420,
			pagination: paginationShow,
			pageSize: common.data.queryData.size,
			pageNumber:common.data.queryData.page,
			pageList: [10, 25, 50, 100],
			showColumns: showColumns,
			sidePagination: 'server', // client or server
			totalRows: total,
			striped: true,
			columns: columns,
			data :data,
			onPageChange: function (size, number) {
				common.data.queryData.size = size;
				common.data.queryData.page = number;
				common.clickQueryData();
			},
			formatNoMatches: function(){
				return '暂无数据';
			}
		});
	},
	setDatepickerTime() {
		var startTime = moment().subtract(7, 'days').format('YYYY-MM-DD');
		var lateDay = moment().subtract(1, 'days').format('YYYY-MM-DD');
		$(".policeInfo_starttime").val(startTime);
		$(".policeInfo_endtime").val(lateDay);
	},
	getQueryData(pageNum,type) { // 查询参数获取
		var queryData = {};
		if (pageNum === 0){
			queryData={
				areaCode:$(".qrm-input-border .qrm-input").attr("data-id"),
				time: this.data.queryData.time,
			    dateType: this.data.queryData.dateType,
			}
		}else if(pageNum === 1){
			queryData={
				areaCode:$(".qrm-input-border .qrm-input").attr("data-id"),
				time: this.data.queryData.time,
				dateType: this.data.queryData.dateType,
				vehicleNo:$(".car_input input").val()
			}
		}else if(pageNum === 2 || pageNum === 3){
			queryData={
				time: this.data.queryData.time,
				dateType: this.data.queryData.dateType,
				platformName: $(".platform_input input").val(),
			}
		}else if(pageNum === 4 || pageNum === 5 || pageNum === 6 || pageNum === 7 || pageNum === 8 || pageNum === 9 || pageNum === 10 || pageNum === 11 || pageNum === 12){
			queryData={
				areaCode:$(".qrm-input-border .qrm-input").attr("data-id"),
				time: this.data.queryData.time,
				dateType: this.data.queryData.dateType,
				platformName: $(".platform_input input").val(),
				owersName: $(".owers_input input").val(),
			}
		}else if(pageNum === 13 || pageNum === 17){
			queryData={
				areaCode:$(".qrm-input-border .qrm-input").attr("data-id"),
				time: this.data.queryData.time,
				dateType: this.data.queryData.dateType,
				platformName: $(".platform_input input").val(),
				owersName: $(".owers_input input").val(),
				vehicleNo:$(".car_input input").val()
			}
		}else if(pageNum === 14 || pageNum === 15 || pageNum === 16){
			queryData={
				areaCode:$(".qrm-input-border .qrm-input").attr("data-id"),
				time: this.data.queryData.time,
				dateType: this.data.queryData.dateType,
				platformName: $(".platform_input input").val(),
				owersName: $(".owers_input input").val()
			}
		}
		type = type || ''
		if (type) {
			queryData.type = type
		}
		queryData.page = this.data.queryData.page;
		queryData.size = this.data.queryData.size;
		return queryData;
	},
	queryParamterReset() { // 参数重置
		this.data.queryData.page = 1;
		$(".qrm-input-border .qrm-input").val("");
		$(".platform_input input").val("");
		$(".owers_input input").val("");
		$(".car_input input").val("");
	},
	clickQueryData() {
		switch(common.data.pageNum) {
			case 0:
				common.initdataNetTable();
				break;
			case 1:
				common.initdataIC();
				break;
			case 2:
			    common.initLowerPlatform();
			    break;
			case 3:
			    common.initPlatCheckTable();
			    break;
			case 4:
			    common.initbaojingTable();
			    break;
			case 5:
			    common.initbQualifiedTable();
			    break;
			case 6:
				common.initWXPosition();
				break;
			case 7:
				common.initdataMil();
				break;
			case 8:
				common.initWXAlarm();
				break;
			case 9:
				common.initOwersCallTime();
				break;
			case 10:
				common.initOwersCheckTable();
				break;
			case 11:
				common.initOwersOversee();
				break;
			case 12:
				common.initTrack();
				break;
			case 13:
				common.initCar();
				break;
			case 14:
				common.initCarLv();
				break;
			case 15:
				common.initCarChaosu();
				break;
			case 16:
				common.initCarPilao();
				break;
			case 17:
				common.initdrive();
				break;
		}
	},
	//--------------------------------------------日期插件------------------------------------------//
	/**
	 * 季度初始化
	 * @param ohd 季度input dom对象非jquery对象
	 * @param sgl 有值单个，无值默认范围
	 */
	renderSeasonDate: function (ohd, sgl) {
		let self = this;
		var ele = $(ohd);
		// console.log(ohd, sgl, "季度")
		var now = new Date();
		let curYear = now.getFullYear();
		let curMonth = now.getMonth() + 1;
		let curDate = now.getDate();
		let maxMonthAuton;
		if (curMonth >= 1 && curMonth <= 3) {
			maxMonthAuton = '0';
		} else if (curMonth >= 4 && curMonth <= 6) {
			maxMonthAuton = '01';
		} else if (curMonth >= 7 && curMonth <= 9) {
			maxMonthAuton = '02';
		} else {
			maxMonthAuton = '03';
		}
		$Date.render({
			elem: ohd,
			type: 'month',
			format: 'yyyy年M季度',
			min: "1900-1-1",
			max: `${curYear}-${maxMonthAuton}-${curDate}`,
			btns: ['clear', 'confirm'],
			ready: function (value, date, endDate) {
				// console.log(value, date, endDate, "季度获取的值")
				var hd = $("#layui-laydate" + ele.attr("lay-key"));
				if (hd.length > 0) {
					hd.click(function () {
						ren($(this));
					});
				}
				ren(hd);
			},
			done: function (value, date) {
				// console.log(value, date, "季度")
				let realMonth;
				if( date.month == "04"){
					realMonth= '10';
				}else if(date.month == "03"){
					realMonth= '07';
				}else if(date.month == "02"){
					realMonth= '04';
				}else{
					realMonth= '01';
				}
				let time = `${date.year}-${realMonth}-${date.date}`;
				// console.log(time, "ttttttttttttttttttt");
				self.data.queryData.time = time;
				// console.log(self.data.queryData.time, "季度赋值");
			}
		});
		var ren = function (thiz) {
			var mls = thiz.find(".laydate-month-list");
			mls.each(function (i, e) {
				$(this).find("li").each(function (inx, ele) {
					var cx = ele.innerHTML;
					if (inx < 4) {
						ele.innerHTML = cx.replace(/月/g, "季度");
					} else {
						ele.style.display = "none";
					}
				});
			});
		}
	},
	selectInputInit:function() { // 地区input级联选择
		jrequest.get("/api/assessMent/selectByArea",{}).then(res => {
			var data = res.data;
			data[0].code=1;
			$.each(data[0].cityAreaVOS,function(i,dom){
				data[0].cityAreaVOS[i].code=2;
				$.each(data[0].cityAreaVOS[i].cityAreaVOS,function(j,dom){
					data[0].cityAreaVOS[i].cityAreaVOS[j].code=3;
				})
			})
			this.creatMainRido("qrm-main",data,"cityAreaVOS","code");
		})
	},
	creatMainRido:function(id,attr,child,jibie){
		$(id).html("");
		var sttrdiv="";
		for(var i=0;i<3;i++){
			sttrdiv +="<div class='qrm-border"+(i+1)+"' style='display:none'>"+
				"<ul class='qrm-lev-"+(i+1)+" qrm-lev' id='qrm-border1'>"+
				"</ul>"+
				"</div>"
		};
		$(".qrm-main").html(sttrdiv);
		var str="";
		$("#qrm-border1").html("");
		var forTree = function(o){
			for(var i=0;i<o.length;i++){
				var urlstr = "";
				try{
					urlstr = "<li><span data-id='"+o[i]["id"]+"'>"+ o[i]["name"] +"</span><i class='qrm-arrow-right'></i><ul class='li-zi-"+o[i][jibie]+"' style='display: none'>";
					str += urlstr;
					if(o[i][child] != null){
						forTree(o[i][child]);
					}
					str += "</ul>";
				}catch(e){}
			}
			return str;
		};
		$("#qrm-border1").html(forTree(attr));
	},
	/**
	 * 初始化表单中年季月日范围选择
	 * 下拉框与日期框对应：
	 *  <select class="dateSelector" date-target="PI" ...
	 *  <input type="text" class="dateTargetPI" readonly ...
	 *  PI为自定义的对应关键字
	 *
	 * @param form 要渲染的form的jquery对象，当form为空默认值为全页面
	 * @param sgl 有值单个，无值默认范围
	 */
	initDateForm: function (sgl, form) {
		let self = this;
		var now = new Date();
		let curYear = now.getFullYear();
		let curMonth = (now.getMonth() + 1) >= 10 ? now.getMonth() + 1 : `0${now.getMonth() + 1}`;
		let curDate = now.getDate();
		// console.log(curYear, curMonth, curDate, "多去当前年月日")
		let curTime = `${curYear}-${curMonth}-${curDate}`;
		// console.log(curTime, "当前年月日")
		let maxCurYear = curYear - 1;
		let maxCurMonth = (curMonth - 1) >= 10 ? curMonth - 1 : `0${curMonth - 1}`;
		let maxCurDate = curDate - 1;
		if (this.isNull(form)) form = $(document.body);
		var ltm = function (tar, tars, tva) {
			// console.log(tar, tars, tva, "ttttttttttttt")
			tars.each(function () {
				$(this).removeAttr("lay-key");
				this.outerHTML = this.outerHTML;
			});
			tars = form.find(".dateTarget" + tar);
			tars.each(function () {
				var ele = $(this);
				if ("y" == tva) {
					let maxYearValue = `${maxCurYear}-${curMonth}-${curDate}`;
					$Date.render({
						elem: this,
						type: 'year',
						format: 'yyyy年',
						max: maxYearValue,
						done: function (value, date) {
							// console.log(value, date, "年");
							let time = `${date.year}-01-01`;
							// console.log(time, "ttttttttttttttttttt");
							self.data.queryData.time = time;
							// console.log(self.data.queryData.time, "月份赋值");
						}
					});
				} else if ("s" == tva) {
					self.renderSeasonDate(this, 1);
				} else if ("m" == tva) {
					let maxMonthValue = `${curYear}-${maxCurMonth}-${curDate}`;
					$Date.render({
						elem: this,
						type: 'month',
						format: 'yyyy年MM月',
						max: maxMonthValue,
						value: `${curYear}年${maxCurMonth}月`,
						done: function (value, date) {
							// console.log(value, date, "月")
							let monthStr = date.month >= 10 ? date.month : `0${date.month}`;
							let time = `${date.year}-${monthStr}-01`;
							// console.log(time, "ttttttttttttttttttt");
							self.data.queryData.time = time;
							// console.log(self.data.queryData.time, "月份赋值")
						}
					});
				} else if ("d" == tva) {
					let maxDateValue = `${curYear}-${curMonth}-${maxCurDate}`;
					$Date.render({
						elem: this,
						format: 'yyyy年MM月dd日',
						max: maxDateValue,
						done: function (value, date) {
							// console.log(value, date, "日");
							let monthStr = date.month >= 10 ? date.month : `0${date.month}`;
							let dateStr = date.date >= 10 ? date.date : `0${date.date}`;
							let time = `${date.year}-${monthStr}-${dateStr}`;
							// console.log(time, "ttttttttttttttttttt");
							self.data.queryData.time = time;
							// console.log(self.data.queryData.time, "月份赋值")
						}
					});
				}
			});
		}
		var sels = form.find(".dateSelector");
		sels.each(function (i, e) {
			var ths = this;
			var thiz = $(e);
			var tar = thiz.attr("date-target");
			thiz.next().find("dd").click(function () {
				var tva = thiz.val();
				var tars = form.find(".dateTarget" + tar);
				ltm(tar, tars, tva);
			});
			thiz.change(function () {
				var tva = $(this).val();
				var tars = form.find(".dateTarget" + tar);
				ltm(tar, tars, tva);
			});
			var tars = form.find(".dateTarget" + tar);
			ltm(tar, tars, thiz.val());
		});
	},

	isNull: function (s) {
		if (s == null || typeof (s) == "undefined" || s == "") return true;
		return false;
	},
	week: function () {
		// this.data.tableParams.time = $dp.$('d121').value;
		$dp.$('d121').value = $dp.cal.getP('y') + "年" + $dp.cal.getP('W', 'WW') + "周";
	}
}// 结束

$(function() {
	common.initTotalPage();
})